home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / programs / ubbs208b.zip / RUNBBS.BAT < prev    next >
DOS Batch File  |  1990-11-21  |  686b  |  32 lines

  1. @echo off
  2. :start
  3. cd\ubbs
  4. ubbs
  5. if errorlevel 7 goto start
  6. if errorlevel 6 goto event3
  7. if errorlevel 5 goto event2
  8. if errorlevel 4 goto exit
  9. if errorlevel 3 goto fatal
  10. if errorlevel 2 goto external
  11. if errorlevel 1 goto event1
  12. if errorlevel 0 goto start
  13. :external
  14. command /C rundoor.bat
  15. goto start
  16. :fatal
  17. cls
  18. echo Fatal Error Occurred, Check UBBS.ERR!
  19. goto start
  20. :event1
  21. echo Do your Event # 1 commands or COMMAND /C the batch file here
  22. goto start
  23. :event2
  24. echo Do your Event # 2 commands or COMMAND /C the batch file here
  25. goto start
  26. :event3
  27. echo Do your Event # 3 commands or COMMAND /C the batch file here
  28. goto start
  29. :exit
  30. cls
  31. echo UltraBBS Exiting to DOS!
  32.